package com.hejun.quartz.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class QuartzJob extends QuartzJobBean {
    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        String orderNo=context.getJobDetail().getJobDataMap().get("orderNo").toString();
        System.out.println(orderNo);
    }
}
